.386
.model small, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.stack 200
.code
.data
_error_resta db "RESULTADO NEGATIVO",10,"$"
_error_overflow db "OVERFLOW EN PRODUCTO",10,"$"
_b ds 0
_a ds 0
_1ul dw 1
_c ds 0
_X ds 0
mov ax, @data
mov ds, ax
start:
jmp fin
overflow:
mov dl, offset _error_overflow
mov ah, 09h
int 21h
jmp fin
res_negativo:
mov dl, offset _error_resta
mov ah, 09h
int 21h
fin:
mov ax, 4c00h
int 21h
end start
